
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class ManageIncome extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4542631330571658992L;
	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ManageIncome frame = new ManageIncome();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ManageIncome() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 542, 389);
		this.setTitle("Manage Income");
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblDate = new JLabel("Categories:");
		lblDate.setBounds(10, 74, 70, 14);
		contentPane.add(lblDate);
		
		textField = new JTextField();
		textField.setBounds(150, 68, 106, 20);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JLabel lblCategory = new JLabel("Amount:");
		lblCategory.setBounds(309, 71, 70, 14);
		contentPane.add(lblCategory);
		
		textField_1 = new JTextField();
		textField_1.setBounds(396, 68, 106, 20);
		contentPane.add(textField_1);
		textField_1.setColumns(10);
		
		JButton btnAdd = new JButton("Add");
		btnAdd.setBounds(396, 97, 106, 23);
		contentPane.add(btnAdd);
		
		JLabel lblCurrentCategory = new JLabel("Current Category:");
		lblCurrentCategory.setBounds(10, 134, 130, 14);
		contentPane.add(lblCurrentCategory);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(10, 159, 130, 126);
		contentPane.add(scrollPane);
		
		JLabel lblSuspendedCategories = new JLabel("Suspended Categories:");
		lblSuspendedCategories.setBounds(309, 134, 136, 14);
		contentPane.add(lblSuspendedCategories);
		
		JScrollPane scrollPane_1 = new JScrollPane();
		scrollPane_1.setBounds(307, 159, 130, 126);
		contentPane.add(scrollPane_1);
		
		JButton btnSuspend = new JButton("Suspend");
		btnSuspend.setBounds(178, 159, 106, 23);
		contentPane.add(btnSuspend);
		
		JButton btnReenable = new JButton("ReEnable");
		btnReenable.setBounds(178, 206, 106, 23);
		contentPane.add(btnReenable);
		
		JButton btnBackToIncome = new JButton("Back to Income Menu");
		btnBackToIncome.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				dispose();
				IncomeScreen page = new IncomeScreen();
				page.setVisible(true);
			}
		});
		btnBackToIncome.setBounds(309, 319, 170, 23);
		contentPane.add(btnBackToIncome);
		
		
	}
}
